/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package syntacticanalyzer;

import java.util.ArrayList;

/**
 *
 * @author Thiago
 */
public class Production {
    
    private String left;
    private ArrayList<String> right;

    public Production() {
        this.left = "";
        this.right = new ArrayList<>();
    }
    
    public Production(String left, ArrayList<String> right) {
        this.left = left;
        this.right = right;
    }

    public void add(String element){
        this.right.add(element);
    }
    
    public ArrayList<String> getRight() {
        return right;
    }

    public void setRight(ArrayList<String> right) {
        this.right = right;
    }

    public String getLeft() {
        return left;
    }

    public void setLeft(String left) {
        this.left = left;
    }
    
}
